package com.mingdong.first.mingling.commond;

public class MarcoCommond implements Commond {

	Commond[] commonds;
	
	public MarcoCommond(Commond[] commonds){
		this.commonds = commonds;
	}
	
	public void execute() {

		for(int i = 0;i< commonds.length;i++){
			commonds[i].execute();
		}
	}

	public void undo() {
		
		for(int i = 0;i< commonds.length;i++){
			commonds[i].undo();
		}
		
	}

}
